package com.linxiao.hrcrm.mapper;

import java.util.List;
import com.linxiao.hrcrm.domain.CrmCustomerRelationship;

/**
 * 客户关系Mapper接口
 * 
 * @author zhoudong
 * @date 2024-01-03
 */
public interface CrmCustomerRelationshipMapper 
{
    /**
     * 查询客户关系
     * 
     * @param id 客户关系主键
     * @return 客户关系
     */
    public CrmCustomerRelationship selectCrmCustomerRelationshipById(Long id);

    /**
     * 查询客户关系列表
     * 
     * @param crmCustomerRelationship 客户关系
     * @return 客户关系集合
     */
    public List<CrmCustomerRelationship> selectCrmCustomerRelationshipList(CrmCustomerRelationship crmCustomerRelationship);

    /**
     * 新增客户关系
     * 
     * @param crmCustomerRelationship 客户关系
     * @return 结果
     */
    public int insertCrmCustomerRelationship(CrmCustomerRelationship crmCustomerRelationship);

    /**
     * 修改客户关系
     * 
     * @param crmCustomerRelationship 客户关系
     * @return 结果
     */
    public int updateCrmCustomerRelationship(CrmCustomerRelationship crmCustomerRelationship);

    /**
     * 删除客户关系
     * 
     * @param id 客户关系主键
     * @return 结果
     */
    public int deleteCrmCustomerRelationshipById(Long id);

    /**
     * 批量删除客户关系
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCrmCustomerRelationshipByIds(Long[] ids);

    /**
     * 查询客户关系列表
     * @param crmCustomerRelationship
     * @return
     */
    public List<CrmCustomerRelationship> selectCcrListJoinCustomer(CrmCustomerRelationship crmCustomerRelationship);

}
